<!DOCTYPE html>
<html lang="en">
	<head>
		<title>东方盘龙</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="__Admin__/css/bootstrap.min.css" />
		<link rel="stylesheet" href="__Admin__/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="__Admin__/css/uniform.css" />
		<link rel="stylesheet" href="__Admin__/css/select2.css" />		
		<link rel="stylesheet" href="__Admin__/css/unicorn.main.css" />
		<link rel="stylesheet" href="__Admin__/css/unicorn.grey.css" class="skin-color" />	
		<script src="__Admin__/js/jquery.min.js"></script>
		<script type="text/javascript" src="__Admin__/js/jquery.form.js"></script>
	    </head>
	<body>
	 <include file="Public/head" />
		<div id="content">
			<div id="content-header">
				<h1>微信菜单管理</h1>
			</div>
		
			<div id="breadcrumb">
				<a href="{:U('Weixin/index')}" class="current">微信菜单管理</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<if condition="!empty($list['id'])" >
								<h5>菜单修改</h5>
								<else />
								<h5>菜单添加</h5>
								</if>
							</div>
							<div class="widget-content nopadding">
								<form class="form-horizontal" method="post" action="{:U('Weixin/setca')}">
                                    <div class="control-group">
                                    <input type="hidden" name="id" value="{$list.id}">
	                                        <label class="control-label" style="width:212px;">排序号：（数值越小越靠前）</label>
	                                         <div style="clear:both;"></div> 
	                                        <div class="controls" style="margin-left:30px;">
	                                            <input id="number" style="width:100px;"type="text" name="sort" value="{$list.sort}"/>
	                                        </div>
	                                        <div style="clear:both;"></div>
	                                        <label class="control-label" style="width:320px;">一级菜单：（如果是一级菜单，选择“无”即可）</label>
	                                       <div style="clear:both;"></div> 
	                                        <div class="controls" style="margin-left:30px;">
	                                        <select name="fid">
	                                        <if condition="$list.fid == 0">
	                                           <option value="0" selected="selected">无 </option>
	                                        <else />   
	                                           <option value="{$ll.id}" selected="selected">{$ll.cname}</option>
	                                           <option value="0" >无 </option>
	                                        </if>   
	                                           <volist name="ca" id="v">
	                                               <option value="{$v.id}">{$v.cname}</option>
	                                           </volist>
	                                        </select>
	                                            
	                                        </div>
	                                         <div style="clear:both;"></div> 
	                                          <label class="control-label" style="width:550px;">菜单名：（可创建最多 3 个一级菜单，每个一级菜单下可创建最多 5 个二级菜单。）</label>
	                                         <div style="clear:both;"></div> 
	                                        <div class="controls" style="margin-left:30px;">
	                                            <input type="text" style="width:300px;" name="cname" value="{$list.cname}"/>
	                                        </div>
	                                        <div style="clear:both;"></div>                                   
	                                        <label class="control-label" style="width:335px;">关联关键词：（关联关键词和关联URL选填一项） </label>
	                                        <div style="clear:both;"></div> 
	                                        <div class="controls" style="margin-left:30px;">
	                                            <input id="number" type="text" name="relation" value="{$list.relation}"/>
	                                        </div>
	                                         <div style="clear:both;"></div>
	                                        <label class="control-label" style="float:left;width:100px;" >管理URL：</label>
	                                         <div style="clear:both;"></div>
	                                        <div class="controls" style="margin-left:30px;">
	                                            <input type="text" name="url" value="{$list.url}"/>
	                                        </div>
                                    </div> 
                                     <div class="form-actions" style="clear:both;">
                                        <input type="submit" value="提交" class="btn btn-primary" />
                                    </div>        
                                </form>
							</div>
						</div>			
					</div>
				</div>		
					</div>
				</div>
				<include file="Public/foot" />
            <script src="__Admin__/js/jquery.ui.custom.js"></script>
            <script src="__Admin__/js/bootstrap.min.js"></script>
            <script src="__Admin__/js/jquery.uniform.js"></script>
            <script src="__Admin__/js/select2.min.js"></script>
            <script src="__Admin__/js/jquery.validate.js"></script>
            <script src="__Admin__/js/unicorn.js"></script>
	</body>
</html>
